from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^MediaRoll/', include('MediaRoll.foo.urls')),
    (r'^randomMedia/$', 'randomMedia.views.display'),
    (r'^randomMedia/login/$', 'randomMedia.views.preLogin'),
    (r'^randomMedia/authorize/$', 'randomMedia.views.userLogin'),
    (r'^randomMedia/uploadConfirm/$', 'randomMedia.views.uploadMedia'),
    (r'^randomMedia/(?P<mediaFile_id>\d+)/results/$', 'randomMedia.views.results'),
    (r'^randomMedia/(?P<mediaFile_id>\d+)/vote/$', 'randomMedia.views.vote'),

    # Uncomment the admin/doc line below to enable admin documentation:
     (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    # Uncomment the next line to enable the admin:
     (r'^admin/', include(admin.site.urls)),
)
